package com.qf.common.page;
import java.util.List;

/**
 * 封装分页信息，包括页数集合和每页的记录集合
 * @param <T>
 */
public class PageInfo<T>{
    public List<T> pageRecords;
    public List<Integer> pageCounts;

    public PageInfo(List<T> pageRecords, List<Integer> pageCounts) {
        this.pageRecords = pageRecords;
        this.pageCounts = pageCounts;
    }

    public List<T> getPageRecords() {
        return pageRecords;
    }

    public void setPageRecords(List<T> pageRecords) {
        this.pageRecords = pageRecords;
    }

    public List<Integer> getPageCounts() {
        return pageCounts;
    }

    public void setPageCounts(List<Integer> pageCounts) {
        this.pageCounts = pageCounts;
    }
}
